@layout("/common/_container.html"){

<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="addForm">
            <input type="hidden" id="sortMap" value="">
            <input type="hidden" id="id" value="${id}">
            <input type="hidden" id="checkoutMethodValue" value="${paymentRecordInfo.checkoutMethod}">
            <div class="row">
                <div class="col-sm-12 proSort">
                    <div class="panel-body">
                    </div>
                    <#input disabled="disabled" id="customerName" name="患者姓名" value="${customerName}" underline="true"/>
                    <#input disabled="disabled" id="actualAccountBalance" name="结账金额" value="${paymentRecordInfo.actualAccountBalance}" underline="true"/>
                    <label class="col-sm-3 control-label">选择结账方式</label>
                    <div class="col-sm-9">
                        <select  class="form-control" id="checkoutMethod" name="checkoutMethod"></select>
                    </div>
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PaymentRecord.updateCheckoutMethod()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="parent.layer.close(parent.layer.getFrameIndex(window.name))"/>
                </div>
            </div>
        </div>
    </div>
</div>
<link rel="stylesheet" href="${ctxPath}/static/css/jqui/jquery-ui.min.css">
<script src="${ctxPath}/static/js/jquery-ui.min.js"></script>
<script src="${ctxPath}/static/modular/arrival/customer/paymentRecord.js"></script>
<script>
    $.post(Feng.ctxPath + "/checkoutMethod/getList", function (data) {
        for (var i = 0; i < data.length; i++) {
            txt += '<option value="' + data[i].checkout_method + '">' + data[i].checkout_method + '</option>';
        }
        document.getElementById('checkoutMethod').innerHTML = txt;
        //状态单选
        var seletecheckoutMethod = $('#checkoutMethodValue').val();
        if (seletecheckoutMethod != "") {
            $("#checkoutMethod option[value=" + seletecheckoutMethod + "]").attr("selected", "selected");
        }
    }, "json");
</script>
@}
